<?php echo $this->render('header.phtml'); ?>
<div class="bar">
<?php echo $this->menu ?>
</div>
<div class="search_field">
	<form method="post" action="<?php echo $this->baseUrl ?>/user/buscar">
		<p><input type="text" name="search" class="search" /> <input type="submit" value="Buscar" class="searchSubmit" /></p>
	</form>
</div>
<h1><?php echo $this->escape($this->title); ?></h1>
<p><a href="<?php echo $this->baseUrl; ?>/user/adicionar">Adicionar novo Usuário</a></p>
<table>
<tr>
	<th>Login</th>
	<th>Nome</th>
	<th>&nbsp</th>
</tr>

<?php foreach($this->users as $usuario) { ?>
<tr>
	<td><?php echo $this->escape($usuario->usuario); ?></td>
	<td><?php echo $this->escape($usuario->nome); ?></td>
	<td>
		<a href="<?php echo $this->baseUrl; ?>/user/editar/id/<?php echo $usuario->id; ?>">Editar</a>
		<a href="<?php echo $this->baseUrl; ?>/user/excluir/id/<?php echo $usuario->id; ?>">Excluir</a>
	</td>
</tr>
<?php } ?>
</table>
<?php echo $this->render('footer.phtml'); ?>